<?php
// $Id: xoops_version.php,v 1.34 2004/09/01 17:48:07 hthouzard Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

$modversion['name'] = "Weather";
$modversion['version'] = 1.3;
$modversion['description'] = "A simple weather module.";
$modversion['credits'] = "David W. Pichard, II";
$modversion['author'] = "http://www.picharddesign.com";
//$modversion['help'] = "news.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/weather.jpg";
$modversion['dirname'] = "weather";

$modversion['sqlfile']['mysql'] = "sql/mysql.sql";

// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "weather";

// Smarty
$modversion['use_smarty'] = 1;

// Templates
$modversion['templates'][1]['file'] = 'weather_index.html';
$modversion['templates'][1]['description'] = 'Displays Main Weather Index Page';;


// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";


// Blocks
$modversion['blocks'][1]['file'] = "weather_block.php";
$modversion['blocks'][1]['name'] = "Mini Weather";
$modversion['blocks'][1]['description'] = "Displays current weather conditions for selected location";
$modversion['blocks'][1]['show_func'] = "getWeather";
$modversion['blocks'][1]['template'] = 'weather_block.html';

// Menu
$modversion['hasMain'] = 1;



//DHTML MENU ITEMS IN ADMIN PAGE
//***** Modify hard link to this module directory in /admin/menu.php
//Update "case" variables in /admin/index.php
$adminmenu[0]['title'] = "Edit City Codes";
$adminmenu[0]['link'] = "admin/index.php?op=codes&currentID=0";

//##############################################################
//ITEMS USED IN THE MODULE PREFERENCES SECTIONS - must have corresponding info in /language/modinfo.php
//##############################################################

 
/**
* Select the number of news items to display on top page - update module in admin to see changes
*/

$modversion['config'][1]['name'] = 'block_bg';
$modversion['config'][1]['title'] = '_block_title';
$modversion['config'][1]['description'] = '_block_DESC';
$modversion['config'][1]['formtype'] = 'yesno';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = 0;

$modversion['config'][2]['name'] = 'block_border';
$modversion['config'][2]['title'] = '_block_border_title';
$modversion['config'][2]['description'] = '_block_border_DESC';
$modversion['config'][2]['formtype'] = 'yesno';
$modversion['config'][2]['valuetype'] = 'int';
$modversion['config'][2]['default'] = 1;

$modversion['config'][3]['name'] = 'font_weight';
$modversion['config'][3]['title'] = '_font_weight_title';
$modversion['config'][3]['description'] = '_font_weight_DESC';
$modversion['config'][3]['formtype'] = 'yesno';
$modversion['config'][3]['valuetype'] = 'int';
$modversion['config'][3]['default'] = 0;

$modversion['config'][4]['name'] = 'show_5day';
$modversion['config'][4]['title'] = '_show_5day_title';
$modversion['config'][4]['description'] = '_show_5day_DESC';
$modversion['config'][4]['formtype'] = 'yesno';
$modversion['config'][4]['valuetype'] = 'int';
$modversion['config'][4]['default'] = 1;

$modversion['config'][5]['name'] = 'show_detailed';
$modversion['config'][5]['title'] = '_show_detailed_title';
$modversion['config'][5]['description'] = '_show_detailed_DESC';
$modversion['config'][5]['formtype'] = 'yesno';
$modversion['config'][5]['valuetype'] = 'int';
$modversion['config'][5]['default'] = 1;

$modversion['config'][6]['name'] = 'measurment';
$modversion['config'][6]['title'] = '_MEASURMENT_TITLE';
$modversion['config'][6]['description'] = '_MEASURMENT_DESC';
$modversion['config'][6]['formtype'] = 'select';
$modversion['config'][6]['valuetype'] = 'text';
$modversion['config'][6]['default'] = 'f';
$modversion['config'][6]['options'] = array('Fahrenheit' => 'f', 'Celsius' => 'c');

?>
